const { execSync } = require('child_process')
const RunCmd = (cmd) => {
  execSync(cmd, { stdio: [process.stdin, process.stdout, process.stderr] })
}

const CmdList = (name) => {
  return [
    'git init ',
    `git remote add origin https://gitee.com/${name}.git`,
    'git add .',
    'git commit -m "init"',
    'git push -u origin master'
  ]
}

module.exports = {
  RunCmd,
  CmdList
}